package org.cloud;


import org.cloud.config.MyAnnotation01;
import org.cloud.myRuleConfig.RuleConfig01;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;


@SpringBootApplication
@RibbonClient(name = "spring-provider",configuration = RuleConfig01.class)  //  spring-provider 使用负载均衡 轮询
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = MyAnnotation01.class)})
@EnableEurekaClient  //本服务启动后好自动进行注册到Eureka服务
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
